package com.sky.orderdetail.service.impl;

import com.sky.entity.OrderDetail;
import com.sky.orderdetail.mapper.OrderDetailMapper;
import com.sky.orderdetail.service.OrderDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 订单明细 serviceImpl
 */
@Slf4j
@Service
public class OrderDetailServiceImpl implements OrderDetailService {


    @Resource
    private OrderDetailMapper orderDetailMapper;



    /**
     * 订单明细
     *         根据orderId，查询订单明细列表
     * @param orderId
     */
    @Override
    public List<OrderDetail> selectOrderDetailListByOrderId(Long orderId) {
        return orderDetailMapper.selectOrderDetailListByOrderId(orderId);
    }
}
